﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace DHQGHN.DAL.Models.DanhMuc
{
    [DataContract]
    public class MasterList
    {
        #region Contructors
        public MasterList() 
        {
            //this.Id = Common.NullValues.Default_Long;
            this.ListName = Common.NullValues.Default_String;
            this.CodeID = Common.NullValues.Default_String;
            this.Code = Common.NullValues.Default_String;
            this.Name = Common.NullValues.Default_String;
            this.LastUpdated = Common.NullValues.Default_DateTime;
            //this.RecodeCount = Common.NullValues.Default_Int;
        }
        #endregion

        #region Properties
        //[DataMember]
        //public long Id { get; set; } //IDs bigint
        [DataMember]
        public string ListName { get; set; } //LIST_NAME nvarchar(50)
        [DataMember]
        public string CodeID { get; set; } //CODE_ID bigint
        [DataMember]
        public string Code { get; set; } //CODE varchar(10)
        [DataMember]
        public string Name { get; set; } //NAME nvarchar(200)
        [DataMember]
        public DateTime LastUpdated { get; set; } //LASTUPDATED datetime
        //[DataMember]
        //public int RecodeCount { get; set; }
        #endregion

        #region Field list from Model
        //public const string Field_IDS = "Id";
        public const string Field_LIST_NAME = "ListName";
        public const string Field_CODE_ID = "CodeID";
        public const string Field_CODE = "Code";
        public const string Field_NAME = "Name";
        public const string Field_LASTUPDATED = "LastUpdated";

        //public const string Field_RECODE_COUNT = "RecodeCount";
        #endregion
    }
}
